<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE>
<html>
	<head>
		<title>错误-500</title>
		
		<smLink1></smLink1>
		<smLink2></smLink2>
		
		<smScript1></smScript1>
		<smScript2></smScript2>
	</head>

	<body>
		<div class="page-content">
			<div class="row">
				<div class="col-xs-12">
					<div class="error-container">
						<div class="well">
							<h1 class="grey lighter smaller">
								<span class="blue bigger-125">
									<i class="ace-icon fa fa-sitemap"></i>
									500
								</span>
								错误
							</h1>
	
							<hr>
							<h3 class="lighter smaller">系统出错，正在努力修复……</h3>
	
							<div>
								<h4 class="smaller">错误详细如下：</h4>
	
								<div class="col-xs-12 danger-color text-break">
									<c:choose>
										<c:when test="${resultVo ne null}">
											<c:set var="newlineTabRE" value="<%=\"\r\n\t\"%>" />
											<c:set var="newlineRE" value="<%=\"\r\n\"%>" />
											<c:set var="tabRE" value="<%=\"\t\"%>" />
											
											<c:set var="result1" value="${fn:replace(resultVo.result, newlineTabRE, \"<br><span class='m-r-30'></span>\")}" />
											<c:set var="result2" value="${fn:replace(result1, newlineRE, \"<br>\")}" />
											<c:set var="result3" value="${fn:replace(result2, tabRE, \"<span class='m-r-30'></span>\")}" />
											
											${result3}
										</c:when>
										<c:otherwise>
											系统出错啦！
										</c:otherwise>
									</c:choose>
								</div>
							</div>
	
							<hr>
							<div class="space"></div>
	
							<div class="center">
								<a class="btn btn-primary" href="<%=basePath%>web/index.html?menuId=0&menuParentId=0">
									<i class="ace-icon fa fa-home"></i>
									首页
								</a>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>